import axios from '@/libs/api.request'

/* 便民缴费缴费项目列表 */
export const getFeesList = () => {
  return axios.request({
    url: '/mock/city-card/pay-the-fees/getFeesList',
    type: 'post'
  })
}
// 充值详单
export const getDetailedList = () => {
  return axios.request({
    url: '/mock/city-card/pay-the-fees/getDetailedList',
    type: 'post'
  })
}
// 企业查询
export const getDetaileList = (data) => {
  return axios.request({
    url: '/api/us/ctc/details/detailList',
    type: 'post',
    data: data
  })
}
// 通过id获取公司
export const getDetaileById = (data) => {
  return axios.request({
    url: '/api/us/ctc/details/detail',
    type: 'post',
    data: data
  })
}
// 获取所查询条数
export const getDetaileNumber = () => {
  return axios.request({
    url: '/api/us/ctc/details/listNumber',
    type: 'get'
  })
}
// 获通过企业名称获取
export const getByName = (data) => {
  return axios.request({
    url: 'http://dlqt.tripln.com/api/us/ctc/details/detailNameList',
    type: 'post',
    data: data
  })
}
// 获通过企业名称获取企业数量
export const getNumberByName = (data) => {
  return axios.request({
    url: '/api/us/ctc/details/listNumberByName',
    type: 'post',
    data: data
  })
}
// 下单
export const citizencardactivate = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcBalanceService/createOrder',
    data: data,
    type: 'post'
  })
}

// 担保存好利来账户余额
export const getbalance = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcBalanceService/setBalanceInfo',
    data: data,
    type: 'post'
  })
}

// 担保存好利来商家简介+预付说明
export const getbusiness = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcbusinessdan/getbusiness',
    data: data,
    type: 'post'
  })
}
// 担保存好利来门店信息
export const balancehaolist = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcbalancehao/balancehaolist',
    type: 'post',
    data: data
  })
}// 用户付款接口
export const yhfk = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcBalanceService/createplaceOrder',
    type: 'post',
    data: data
  })
}
// 未授权列表
export const selectUnauthorizedList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcunauthorized/selectUnauthorizedList',
    type: 'post',
    data: data
  })
}
// 已授权列表
export const selectAuthorizedList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcunauthorized/selectAuthorizedList',
    type: 'post',
    data: data
  })
}
/* 商户名称 */
export const getbuinessmsg = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcbusinessdan/getbuinessmsg',
    type: 'post',
    data: data
  })
}

/* 会员商家授权成功 */
export const setAuthorize = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcUnauthorizedService/setAuthorize',
    type: 'post',
    data: data
  })
}
/* 改变会员商家授权 */
export const updateAuthorize = (data) => {
  return axios.request({
    url: '/api/uc/ctc/CtcUnauthorizedService/updateAuthorize',
    type: 'post',
    data: data
  })
}
/* 查询授权状态 */
export const selectState = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcunauthorized/selectState',
    type: 'post',
    data: data
  })
}

/* 会员政策列表 */
export const memberpolicylist = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcmemberpolicy/memberpolicylist',
    type: 'post',
    data: data
  })
}
